import {req} from '@/fetch/req_util.js'

const BASE_URL = 'http://localhost:12001'
// const jsonPostHeaderConfig = {
//   headers: {
//     'Content-Type': 'application/json'
//   }
// }

function getUrl (uri) {
  return BASE_URL + uri
}

export default {

  searchFiction: (data) => { return req.post(getUrl('/search/fiction'), data) },
  searchCatalog: (data) => { return req.post(getUrl('/search/catalog'), data) },
  searchChapter: (data) => { return req.post(getUrl('/search/chapter'), data) }

}
